package top.lyunk.demo.server.b.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import top.lyunk.demo.server.b.entity.Student;
import top.lyunk.demo.server.b.mapper.StudentMapper;

@Service
public class ServiceBService {
    @Autowired
    private StudentMapper studentMapper;

    @Transactional
    public int addStudent(Student student) {
        return studentMapper.insert(student);
    }

}
